cmake_minimum_required(VERSION 3.30)
project(sample_cpp VERSION 1.0)

# 标准库
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 子目录
add_subdirectory(Complex)

add_executable(sample_cpp main.cpp
        String.h)

target_link_libraries(sample_cpp PUBLIC Complex)

target_include_directories(sample_cpp PUBLIC
        "${PROJECT_BINARY_DIR}"
        "${PROJECT_SOURCE_DIR}/Complex"
)